//
//  MHConstEnum.h
// MiaoCircle
//
//Created by acgera on 2018/4/9.
//  Copyright © 2018年 acgera. All rights reserved.
//  所有枚举定义区域

#ifndef MHConstEnum_h
#define MHConstEnum_h

/// tababr item tag
typedef NS_ENUM(NSUInteger, MHTabBarItemTagType) {
    MHTabBarItemTagTypeCircle = 0,    /// 圈子
    MHTabBarItemTagTypeMessage,         /// 消息
    MHTabBarItemTagTypeDiscover,       /// 发现
    MHTabBarItemTagTypeGuide,
    MHTabBarItemTagTypeProfile,          /// 我的
};


/// 朋友圈
/// 类型
typedef NS_ENUM(NSUInteger, MHMomentContentType) {
    MHMomentContentTypeAttitude = 0,   /// 点赞
    MHMomentContentTypeComment ,       /// 评论
};

typedef NS_ENUM(NSUInteger, MHDefaultAvatarType) {
    MHDefaultAvatarTypeSmall = 0,  /// 小图 34x34
    MHDefaultAvatarTypeDefualt,    /// 默认 50x50
    MHDefaultAvatarTypeBig,        /// 大图 85x85
    
};
/// 占位头像


typedef NS_ENUM(NSUInteger, MHPurseType) {
    MHPurseTypeIncome = 1,
    MHPurseTypeOut,
};

/// 切换根控制器类型
typedef NS_ENUM(NSUInteger, MHSwitchRootViewControllerFromType) {
    MHSwitchRootViewControllerFromTypeNewFeature = 0,  /// 新特性
    MHSwitchRootViewControllerFromTypeLogin,           /// 登录
    MHSwitchRootViewControllerFromTypeLogout,          /// 登出
    MHSwitchRootViewControllerFromTypeFirstIn,
//    MHSwitchRootViewControllerFromTypeLogoutByToken,          /// 登出
};

typedef NS_ENUM(NSUInteger, MHCirclePublishPermission) {
    MHCirclePublishPermissionAll = 1,
    MHCirclePublishPermissionOwner,
    MHCirclePublishPermissionOwnerAndManager,
};





typedef NS_ENUM(NSUInteger, MHMomentMemberIdentity) {
    MHMomentOwnerToSelf = 0,  /// 新特性
    MHMomentOwnerToMember,           /// 登录
    MHMomentMemberToSelf,          /// 登出
    MHMomentMemberToOther,
    //    MHSwitchRootViewControllerFromTypeLogoutByToken,          /// 登出
};


typedef NS_ENUM(NSUInteger, MHCircleIdentityType) {
    MHCircleIdentityTypeOwner = 1,
    MHCircleIdentityTypeManager ,
    MHCircleIdentityTypeGuest,
    MHCircleIdentityTypeGuestMember,
};


typedef NS_ENUM(NSUInteger, MHAuditStatus) {
    MHAuditStatusPass = 1,
    MHAuditStatusReject,
    MHAuditStatusIgnore,
    MHAuditStatusAuditing,  //审核中
};


typedef NS_ENUM(NSUInteger, MHRecentMessageType) {
    MHRecentMessageTypeComment = 1,  /// 新特性
    MHRecentMessageTypeAttribute,           /// 登录
    MHRecentMessageTypeAsk,          /// 登出
    MHRecentMessageTypeAnser,
    MHRecentMessageTypeCollection,
    //    MHSwitchRootViewControllerFromTypeLogoutByToken,          /// 登出
};

typedef NS_ENUM(NSUInteger, MHCircleEditType) {
    MHCircleEditTypeCreate = 0,  /// 创建
    MHCircleEditTypeEdit,  /// 编辑
};

/// 用户登录的渠道
typedef NS_ENUM(NSUInteger, MHUserLoginChannelType) {
    MHUserLoginChannelTypeWeChatId = 1,         /// 微信号登录
};

/// 用户性别
typedef NS_ENUM(NSUInteger, MHUserGenderType) {
    MHUserGenderTypeMale =0,            /// 男
    MHUserGenderTypeFemale,             /// nv
};


typedef NS_ENUM(NSUInteger, MHCirclContenType) {
    MHCirclContenUnkown = 0 ,
    MHCirclContenTypeText = 1,            /// 文字
    MHCirclContenTypeVideo,             /// 直播
};

typedef NS_ENUM(NSUInteger, MHCirclPayType) {
    MHCirclPayTypeUnkown = 0 ,
    MHCirclPayTypeFree ,            /// 免费
    MHCirclPayTypeCharge,             /// 收费
};

typedef NS_ENUM(NSUInteger, MHCirclLimitType) {
    MHCirclLimitTypeTemp =0,            /// 临时
    MHCirclLimitTypeForever,             /// 永久
};


typedef NS_ENUM(NSUInteger,MHCirclShareType ) {
    MHCirclShareTypeWeChat = 1,            /// 临时
    MHCirclShareTypeWeChatTimeLine,             /// 永久
};

typedef NS_ENUM(NSUInteger, MHCirclComposeType) {
    MHCirclComposeTypePublish =0,            //发表
    MHCirclComposeTypeAsk,             //提问
    MHCirclComposeTypeVideo,             //提问
};


typedef NS_ENUM(NSUInteger, MHCircleComposePayType) {
    MHCircleComposePayTypeWX = 1,
    MHCircleComposePayTypeLeft ,
};

typedef NS_ENUM(NSUInteger, MHPusBusType) {
    MHPusBusTypeMember =1,            //发表
    MHPusBusTypeTiXian,             //提问
    MHPusBusTypeIncome,             //提问
};


typedef NS_ENUM(NSUInteger, MHIMMessageType) {
    MHIMMessageTypeComment = 1,
    MHIMMessageTypeAsk,
    MHIMMessageTypeAnser,
    MHIMMessageTypeAudit,
    MHIMMessageTypePass,
    MHIMMessageTypeNewMember = 6,
    MHIMMessageTypeAttribute = 7,
    MHIMMessageTypeCircleUpdate = 8,
    MHIMMessageTypeRedPacketReceive = 9,
    MHIMMessageTypePaySuccess = 10,
    MHIMMessageTypeSystemMessage = 11,
    MHIMMessageTypeRedPacketMessaege = 12,
     MHIMMessageTypeJoinCircleName = 13,
    
    
    MHIMMessageTypeTotalRedPacketMessage = 20, //红包合起来的消息，用于聊天界面合并红包消息
};

//typedef  NS_ENUM(NSInteger,ActionType)
//{
//    ActionType_Save,
//    ActionType_Publish,
//    ActionType_Save_Publish,
//};

typedef NS_ENUM(NSUInteger, MHRecentContentType) {
    MHRecentContentTypeRecent = 1,
    MHRecentContentTypeAsk,    
};

/// 插件详情说明
typedef NS_ENUM(NSUInteger, MHPlugDetailType) {
    MHPlugDetailTypeLook = 0,     /// 看一看
    MHPlugDetailTypeSearch,       /// 搜一搜
};


/// 微信朋友圈类型 （0 配图  1 video 2 share）
typedef NS_ENUM(NSUInteger, MHMomentExtendType) {
    MHMomentExtendTypePicture = 0, /// 配图
    MHMomentExtendTypeAsk,       /// 分享
    MHMomentExtendTypeVideo,       /// 视频
    
};


/// 微信朋友圈分享内容的类型
typedef NS_ENUM(NSUInteger, MHMomentShareInfoType) {
    MHMomentShareInfoTypeWebPage = 0, /// 网页
    MHMomentShareInfoTypeMusic,       /// 音乐
};


typedef NS_ENUM(NSUInteger,LoadingType) {
    LoadStateIdle                   = 0,
    LoadStateLoading                = 1,
    LoadStateAll                    = 2,
    LoadStateFailed                 = 3
};

//refreshing type enum
typedef NS_ENUM(NSUInteger,RefreshingType) {
    RefreshHeaderStateIdle          = 0,
    RefreshHeaderStatePulling       = 1,
    RefreshHeaderStateRefreshing    = 2,
    RefreshHeaderStateAll           = 3
};

//chat edit message type enum
typedef NS_ENUM(NSUInteger,ChatEditMessageType) {
    EditTextMessage        = 0,
    EditPhotoMessage       = 1,
    EditEmotionMessage     = 2,
    EditNoneMessage        = 3,
};

typedef NS_ENUM(NSUInteger,MenuActionType) {
    DeleteAction        = 0,
    CopyAction         = 1,
    PasteAction         = 2
};


typedef NS_ENUM(NSUInteger,RedPacketType) {
    RedPacketInCircle        = 1,
    RedPacketNearby,
    RedPacketShare,
};


typedef NS_ENUM(NSUInteger,RedPacketStatus) {
    RedPacketGoing        = 1,
    RedPacketFinish,
    RedPacketExpired,
};

typedef NS_ENUM(NSUInteger,RedPacketHistoryType) {
    RedPacketHistoryTypeReceive        = 1,
    RedPacketHistoryTypeSend,
};
typedef NS_ENUM(NSUInteger,RedPackePostionType) {
    RedPackePostionCirle        = 1,
    RedPackePostionNearby,
    RedPackePostionInVideo,
};


#endif /* MHConstEnum_h */
